package br.gov.dpf.epol.test.designtests;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class UtilParaTestes {

    public static void escreverArquivo(String nomeArquivo, String conteudo) {
	try {
	    File violacoes = new File("violations/" + nomeArquivo);
	    
	    if (!violacoes.exists()) {
		violacoes.createNewFile();
	    }
	    
	    BufferedWriter file = new BufferedWriter(new FileWriter(violacoes,true));
	    file.append(conteudo);
	    file.close();
	} catch (IOException e) {
	}
    }

}